package JVM;

import java.util.ArrayList;
import java.util.List;

/**
 * @author: 谢君臣
 * @create: 2020-09-28 16:02
 * @founction: XXXX
 */
public class TestGc {
    public static void main(String[] args) {
        int i = 1;
        List<String> list = new ArrayList<>();
        try {
            while (true){
                list.add("hello word!");
                i++;
            }
        }catch (Exception e){
            System.out.println(i);
            System.out.println(e);
        }
    }
}
